package com.baiytfp.hf.HFDataExchange.action.controller.service;

import com.baiytfp.hf.baiytfp.common.db.HFPager;
import com.baiytfp.hf.baiytfp.framework.base.BaseController;
import com.baiytfp.hf.baiytfp.hfutils.HFResponse;
import com.baiytfp.hf.HFDataExchange.action.service.OperateRecordService;
import com.baiytfp.hf.HFDataExchange.common.utils.HFPagerUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


@Controller
@RequestMapping("/service/record")
public class OperateRecordSController extends BaseController {

	@Autowired
    private OperateRecordService operateRecordService;
	
	//新增一条记录
	@RequestMapping("list")
	public void list(HttpServletRequest request, HttpServletResponse response) throws Exception {
		HFPager hfPager = HFPagerUtil.getHFPagerEndDayAmend(request);
		operateRecordService.getList(hfPager);
		HFResponse.getIstance().returnResult(response, hfPager.getResult());
	}

}
